package br.com.delogic.simuladorbancario.main.controller;

import br.com.delogic.simuladorbancario.main.model.Cliente;
import br.com.delogic.simuladorbancario.main.model.Sucesso;
import br.com.delogic.simuladorbancario.main.view.ClienteView;

/**
 *
 * @author NB1
 */
public class AlterarClienteController extends ClienteController {
    protected Cliente cliente;
    
    @Override
    public void salvar(ClienteView view) {
        view.preencherCliente(cliente);
        Sucesso sucesso = clienteBusiness.alterarCliente(cliente);
        view.informarSucesso(sucesso);
    }

    @Override
    public void consultar(Integer codigo, ClienteView view) {
        cliente = clienteBusiness.consultarClientePorCodigo(codigo);
        view.mostrarCliente(cliente);
    }

    @Override
    public void bloquear(ClienteView view) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void cancelar(ClienteView view) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void reativar(ClienteView view) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
